﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.CarService.Upkeeps
{
    public interface IUpkeepRepository
    {
        /// <summary>
        /// 显示保养记录
        /// </summary>
        /// <param name="name"></param>
        /// <param name="time"></param>
        /// <param name="cardnumber"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<UpkeepDto>> GetShowUpkeep(string name, DateTime? time, string cardnumber, int pageindex, int pagesize);
        /// <summary>
        /// 删除保养记录
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelUpkeep(int id);
        /// <summary>
        /// 批量删除保养记录
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsUpkeep(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="upkeepDto"></param>
        /// <returns></returns>
        Task<int> PutUpdateUpkeep(UpkeepDto upkeepDto);
        /// <summary>
        /// 添加保养记录
        /// </summary>
        /// <param name="upkeepDto"></param>
        /// <returns></returns>
        Task<int> PostAddUpkeep(UpkeepDto upkeepDto);
    }
}
